<?php
	require_once '../../../Class/config.php';
	$objcfg = new config();
	require_once ($_SERVER["DOCUMENT_ROOT"]."/".$objcfg->objEnd."/Class/geral.php");
    $geral = new Geral();
    require_once ($geral->conexao());
    require_once ($geral->departamento());

    $objDept = new Departamento();

    $objDept->setId($_POST["id"]);
    $objDept->setDescDept($_POST["desc"]);
    $objDept->setEmpresa($_POST["emp"]);
    $objDept->setDeptFlag($_POST["flagExcluir"]);

    $objDept->alterar();

?>
